home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 11 / Mac Magazin and MacEasy Magazine CD - Issue 11.iso / Sharewarebibliothek / Entwickler / CDEF-DeBugger 2.0 ƒ / MenuBar.c < prev    next >
Text File  |  1995-05-31  |  610b  |  23 lines

  1. // prototypes
  2. void DrawTheMenuBar( void );
  3.  
  4. // globals
  5. MenuHandle            gAppleMenu;
  6.  
  7. /******************************************************************
  8.  
  9.     Set up the menus and the menu bar 
  10.     
  11. ******************************************************************/
  12. void DrawTheMenuBar( void )
  13. {    
  14.     Handle                myMenuBar;
  15.     
  16.     myMenuBar = GetNewMBar( 128 );            //This allocates storage for, and reads in a menu list from a MBAR res
  17.     SetMenuBar( myMenuBar );                  //This installs a menu list (a list of handles to menus)
  18.     gAppleMenu = GetMHandle( MENU_APPLE );    
  19.     AddResMenu( gAppleMenu, 'DRVR' );
  20.     
  21.     DrawMenuBar();
  22.     
  23. }